import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import Textboxv from '../components/qrsrc/Textboxv.vue'
import Qrapp from '../Qrapp.vue'

const routes = [{
        path: '/',
        name: 'Qrapp',
        component: Qrapp,
        children: [{
                path: '',
                component: () =>
                    import ('../components/qrsrc/Textboxv.vue')
            },
            {
                path: 'Httpboxv',
                component: () =>
                    import ('../components/qrsrc/Httpboxv.vue')
            },
            {
                path: 'Sucbox',
                component: () =>
                    import ('../components/qrsrc/Sucbox.vue')
            }
        ]
    },
    {
        path: '/Httpboxv',
        name: 'Httpboxv',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ( /* webpackChunkName: "about" */ '../components/qrsrc/Httpboxv.vue')
    },
    {
        path: '/Upfile',
        name: 'Upfile',
        component: () =>
            import ('../components/upfile/Upfile.vue')
    }
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router